package com.z.util;

import com.google.gson.Gson;

public class JsonUtil {
	private static JsonUtil jsonUtil;
	public static JsonUtil getInstance(){
		if(jsonUtil==null){
			jsonUtil=new JsonUtil();
		}
		return jsonUtil;
	}
	
	public String toJson(Object obj){
		Gson gson=new Gson();
		return gson.toJson(obj);
	}
}
